package com.atguigu.gulimall.coupon;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;


/***
 * nacos配置中心
 * 1引入那nacosconfig的依赖
 * 引入bootstatrap依赖
 * 2创建bootstratrap。properties
 * 配置spring.application.name=gulimall-coupon
 *
 * spring.cloud.nacos.config.server-addr=127.0.0.1:8848
 * 3给配置中心默认添加一个叫数据集（data id）gulimall-coupon.properties
 * 4动态获取配置
 *  @RefreshScope
 * @Value
 */

@SpringBootApplication
@EnableDiscoveryClient//开启服务注册发现客户端
public class GulimallCouponApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallCouponApplication.class, args);
    }

}
